package 博客.组合模式;

/**
 * 班级继承于组织
 */
public class Class extends Organization{
    public Class(String name) {
        super(name);
    }

    @Override
    public void display() {
        System.out.println("---------------"+this.getName()+"---------------------");
    }
}
